Skip to main content

Get Moderation Status for a Specific Contribution

This endpoint retrieves moderation status for a specific contribution

info

This operation requires moderation role.

HTTP Request

GET /api/v2/moderation/contribution/{id}/status/

Parameters

NameInTypeRequiredDescription
idpathstringtrueA unique integer value identifying this Contribution
contribution_typebodystringtrueValid values are: post, discussion, status, comment

Example Request

const headers = {
'Accept':'application/json',
'Authorization': 'Bearer {access_token}'
};

fetch('/api/v2/moderation/contribution/{id}/status/',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});

Responses

StatusMeaningDescriptionSchema
200OKResponse status codeInline

Status values

ParameterValue
statusopen
statusignored
statushidden
statusdeleted

Flag type values

ParameterValueDescription
flag_type0spam
flag_type1aggressive
flag_type2vulgar
flag_type3poor
flag_type4offtopic

Example responses

{
"status": "string",
"flag_type": "integer",
"flag_type_description": "string"
}